package com.zc.mall.service;

import com.github.pagehelper.PageInfo;
import com.zc.mall.form.ShippingForm;
import com.zc.mall.vo.ResponseVo;

import java.util.Map;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName IShippingService.java
 * @Description 收货地址接口
 * @createTime 2021年06月12日 09:32:00
 */
public interface IShippingService {


    /**
     * 新增地址
     * @param uid
     * @param form
     * @return
     */
    ResponseVo<Map<String,Integer>> add(Integer uid, ShippingForm form);

    /**
     * 删除地址
     * @param uid
     * @param shippingId
     * @return
     */
    ResponseVo delete(Integer uid, Integer shippingId);


    /**
     * 更新地址
     * @param uid
     * @param shippingId
     * @return
     */
    ResponseVo update(Integer uid, Integer shippingId, ShippingForm form);


    /**
     * 地址列表
     * @param uid
     * @return
     */
    ResponseVo<PageInfo> list(Integer uid, Integer pageNum, Integer pageSize);


}
